package cn.botter.subject.domain.convert;

import cn.botter.subject.domain.entity.SubjectAnswerBO;
import cn.botter.subject.infra.basic.entity.SubjectJudge;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface JudgeSubjectConverter {

    JudgeSubjectConverter INSTANCE = Mappers.getMapper(JudgeSubjectConverter.class);

    /**
     *
     * @param answerListBO
     * @return
     */
    SubjectJudge convertBoToJudge(SubjectAnswerBO answerListBO);

    List<SubjectAnswerBO> convertRadioToAnswerBO(List<SubjectJudge> result);
}
